import request from '@/utils/request'

// 基础配置列表
export function settingLists(params?: Record<string, any>) {
    return request.get({ url: '/setting/list', params })
}

export function settingLists2(params:string) {
    return request.get({ url: '/setting/list2/'+params})
}

// 基础配置详情
export function settingDetail(params: Record<string, any>) {
    return request.get({ url: '/setting/detail', params })
}

// 基础配置新增
export function settingAdd(params: Record<string, any>) {
    return request.post({ url: '/setting/add', params })
}

// 基础配置编辑
export function settingEdit(params: Record<string, any>) {
    return request.post({ url: '/setting/edit', params })
}

// 基础配置编辑
export function saveSetting(params: Record<string, any>) {
    return request.post({ url: '/setting/saveSetting', params })
}

// 基础配置删除
export function settingDelete(params: Record<string, any>) {
    return request.post({ url: '/setting/del', params })
}
